QT -= gui core network

TEMPLATE = lib
CONFIG += staticlib
TARGET = breakpad

INCLUDEPATH += $$PWD


macx: {
    LIBS += -framework CoreFoundation # -framework CoreServices
    QMAKE_CXXFLAGS += -g -O0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu++0x -stdlib=libc++
}

unix:!macx {
    # This supports GCC 4.7
    QMAKE_CXXFLAGS += -g -O0 -lm -lpthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++0x
}

win32 {
    QMAKE_CXXFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

}

SOURCES +=  \
        client/linux/crash_generation/crash_generation_client.cc \
        client/linux/crash_generation/crash_generation_server.cc \
        client/linux/dump_writer_common/thread_info.cc \
        client/linux/dump_writer_common/ucontext_reader.cc \
        client/linux/handler/exception_handler.cc \
        client/linux/handler/exception_handler.h \
        client/linux/handler/minidump_descriptor.cc \
        client/linux/handler/minidump_descriptor.h \
        client/linux/log/log.cc \
        client/linux/log/log.h \
        client/linux/microdump_writer/microdump_writer.cc \
        client/linux/microdump_writer/microdump_writer.h \
        client/linux/minidump_writer/linux_core_dumper.cc \
        client/linux/minidump_writer/linux_dumper.cc \
        client/linux/minidump_writer/linux_ptrace_dumper.cc \
        client/linux/minidump_writer/minidump_writer.cc \
        client/minidump_file_writer-inl.h \
        client/minidump_file_writer.cc \
        client/minidump_file_writer.h \
        common/convert_UTF.cc \
        common/convert_UTF.h \
        common/md5.cc \
        common/md5.h \
        common/string_conversion.cc \
        common/string_conversion.h \
        common/linux/elf_core_dump.cc \
        common/linux/elfutils.cc \
        common/linux/elfutils.h \
        common/linux/file_id.cc \
        common/linux/file_id.h \
        common/linux/guid_creator.cc \
        common/linux/guid_creator.h \
        common/linux/linux_libc_support.cc \
        common/linux/memory_mapped_file.cc \
        common/linux/safe_readlink.cc \
        common/linux/breakpad_getcontext.S
